<template>
	<div class="app-wrap">
		
		<router-view></router-view>
		<Navs></Navs>
		
	</div>
</template>

<script>

import Vue from 'vue';
import vueResource from 'vue-resource';
import Navs from './components/common/nav';

Vue.use(vueResource);

export default {
  data() {
		return {
			txt: ''
		}
  },
  components: {
    Navs
  },
  ready() {
  	
  	var self = this;
  	
  	// ./assets/json/search.json
  	this.$http.get('/static/json/search.json', {})
  		.then(( res ) => {
  			// success
  			
  			var data = res.data;
  			
  			if ( data.errno === 1 ) {
	  			self.$set('txt', data.data[0]['conent']);
  			}
  			
  		}, () => {
  			// error
  		});
  	
  }
}
</script>


<style lang="scss">

@import url("./assets/css/bootstrap.css");
@import url("./assets/css/app.css");

</style>